﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DoubanApi.Models
{
    [Serializable]
    public abstract class DoubanModel
    {
        /// <summary>
        /// ID
        /// </summary>
        public int Id
        {
            get
            {
                return int.Parse(ApiUrl.Substring(ApiUrl.LastIndexOf('/')+1));
            }
        }

        /// <summary>
        /// api地址
        /// </summary>
        internal string ApiUrl { get;  set; }

        /// <summary>
        /// 豆瓣连接
        /// </summary>
        public string DoubanLink { get;internal set; }

        /// <summary>
        /// 图片连接
        /// </summary>
        public string ImageLink { get; internal set; }

        /// <summary>
        /// 图片连接(大)
        /// </summary>
        public string ImageLinkBig { get; internal set; }
    }
}
